1
|
|
|
require('./bootstrap'); |
2
|
|
|
|
3
|
|
|
Vue.component('blocks', require('./components/Blocks.vue')); |
4
|
|
|
Vue.component('block-preview', require('./components/Previews/BlockPreview.vue')); |
5
|
|
|
Vue.component('dashboard', require('./components/Dashboard.vue')); |
6
|
|
|
Vue.component('deleted-projects', require('./components/DeletedProjects.vue')); |
7
|
|
|
Vue.component('flash-manager', require('./components/FlashManager.vue')); |
8
|
|
|
Vue.component('flash-message', require('./components/FlashMessage.vue')); |
9
|
|
|
Vue.component('image-manager', require('./components/ImageManager.vue')); |
10
|
|
|
Vue.component('image-tile', require('./components/ImageTile.vue')); |
11
|
|
|
Vue.component('lines', require('./components/Lines.vue')); |
12
|
|
|
Vue.component('links', require('./components/Links.vue')); |
13
|
|
|
Vue.component('link-preview', require('./components/Previews/LinkPreview.vue')); |
14
|
|
|
Vue.component('link-status', require('./components/LinkStatus.vue')); |
15
|
|
|
Vue.component('name-preview', require('./components/Previews/NamePreview.vue')); |
16
|
|
|
Vue.component('nav-projects', require('./components/NavProjects.vue')); |
17
|
|
|
Vue.component('project-link', require('./components/ProjectLink.vue')); |
18
|
|
|
Vue.component('project-controls', require('./components/ProjectControls.vue')); |
19
|
|
|
Vue.component('project-form', require('./components/ProjectForm.vue')); |
20
|
|
|
Vue.component('project-tile', require('./components/ProjectTile.vue')); |
21
|
|
|
Vue.component('type-preview', require('./components/Previews/TypePreview.vue')); |
22
|
|
|
|
23
|
|
|
const bus = new Vue(); |
24
|
|
|
|
25
|
|
|
Vue.prototype.$bus = bus; |
26
|
|
|
|
27
|
|
|
import MediaQueries from './mixins/MediaQueries.js'; |
28
|
|
|
|
29
|
|
|
new Vue({ |
|
|
|
|
30
|
|
|
el: '#app', |
31
|
|
|
|
32
|
|
|
mixins: [ MediaQueries ], |
33
|
|
|
|
34
|
|
|
data: { |
35
|
|
|
showMenu: false |
36
|
|
|
}, |
37
|
|
|
|
38
|
|
|
computed: { |
39
|
|
|
menuVisible () { |
40
|
|
|
if (this.small) { |
41
|
|
|
return this.showMenu; |
42
|
|
|
} |
43
|
|
|
|
44
|
|
|
return true; |
45
|
|
|
} |
46
|
|
|
}, |
47
|
|
|
|
48
|
|
|
methods: { |
49
|
|
|
/** |
50
|
|
|
* Toggle mobile menu. |
51
|
|
|
*/ |
52
|
|
|
toggleMenu () { |
53
|
|
|
this.showMenu = !this.showMenu; |
54
|
|
|
} |
55
|
|
|
} |
56
|
|
|
}); |
57
|
|
|
|